<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>在线更新</title>
    <link href="/favicon.ico" rel="icon">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/component/pear/css/pear.css" />
    <link rel="stylesheet" href="<?=adminassets?>assets/css/Update.css" />
</head>
<body class="pear-container">
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-header">
                <i class="layui-icon layui-icon-update"></i> 在线更新
            </div>
            <div class="layui-card-body">
                <form class="layui-form">
                    <h4 class="page-title">当前版本序列号：V<?= Version ?></h4>
                    <div class="update_conter">
                        <div class="update_tips">
                            <?= $res['msg'] ?>
                            <br>
                            写入文件①（推荐）
                            <?=$kedu?>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block" style="margin-left: 0;">
                            <?php if($res['code']==1): ?>
                                <button class="pear-btn pear-btn-primary" lay-submit lay-filter="Check">
                                    <i class="layui-icon layui-icon-download-circle"></i> <?=$anniu?>
                                </button>
                            <?php else: ?>
                                <button class="pear-btn pear-btn-primary"><?=$anniu?></button>
                            <?php endif; ?>
                            <a href="<?=$this->authdata['url']?>" class="layui-btn layui-btn-primary">
                                <i class="layui-icon layui-icon-home"></i> 官网
                            </a>
                        </div>
                    </div>
                </form>
            </div>
        </div>

        <div class="layui-card">
            <div class="layui-card-header">
                <i class="layui-icon layui-icon-log"></i> 更新日志
            </div>
            <div class="layui-card-body">
                <div class="layui-timeline">
                    <div class="layui-timeline-item">
                        <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                        <div class="layui-timeline-content layui-text">
                            <div class="update-list">
                                <h3 class="layui-timeline-title">最新版本号：<?=$newup?></h3>
                                <div class="update-list">
                                    <?=$uplogtxt?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="<?=adminassets?>assets/pear/component/layui/layui.js"></script>
    <script src="<?=adminassets?>assets/pear/component/pear/pear.js"></script>
    <script src="<?=adminassets?>assets/js/core_js/Update.js?v=<?=time()?>"></script>
</body>
</html>